<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<link rel="stylesheet" href="/css/message.css" type="text/css" media="all" />

<div style="display: block; height: 40px"></div>
<div class="box">
	<h3 class="boxTitle">Thêm giảng viên</h3>
	<form:form commandName="createLecturerViewModel" method="POST" id="createLecturerForm">
		<form:errors path="*" cssClass="errorblock" element="div" />
		<table align="center">
			<tr>
				<td>Mã số giảng viên (*)</td>
				<td><form:input path="lecturerId" id="lecturerId" cssClass="inputField" /></td>
			</tr>
			<tr>
				<td>Tên giảng viên (*)</td>
				<td><form:input path="lecturerName" id="lecturerName" cssClass="inputField" /></td>
			</tr>
			<tr>
				<td>Email (*)</td>
				<td><form:input path="lecturerEmail" id="lecturerEmail" cssClass="inputField" /></td>
			</tr>
			<tr>
				<td>Bộ môn (*)</td>
				<td>
					<form:select path="department" cssClass="inputField">
						<form:option value="NONE" label="--Chọn bộ môn--" />
						<form:options items="${departments}" />
					</form:select>
				</td>
			</tr>
			<tr>
				<td>Admin ?</td>
				<td><form:checkbox path="isAdmin" id="isAdmin" cssClass="checkBox" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><input type="submit" value="Thêm mới" /></td>
			</tr>
		</table>
	</form:form>
</div>